package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 论坛评论回复表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("forum_replies")
public class ForumReplies implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 论坛评论回复id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 帖子id
     */
    @TableField("post_id")
    private Integer postId;

    /**
     * 回复用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 回复内容
     */
    @TableField("content")
    private String content;

    /**
     * 回复时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 点赞数
     */
    @TableField("likes")
    private Integer likes;

    /**
     * 状态，0：正常，1：被举报，2：禁止查看
     */
    @TableField("status")
    private Integer status;
}
